<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>商品-活动标签信息</title>
<%@ include file="/page/include.jsp"%>
</head>
<link rel="stylesheet" type="text/css" href="${rootPath}/statics/plugins/zTree/css/zTreeStyle/zTreeStyle.css" />
<style type="text/css">
.error {
	color: red;
	padding-left: 10px;
}
</style>
<body class="nav-md" style="background-color: #f7f7f7">
	<div class="container body">
		<div class="main_container">
			<div class="framebody" style="min-height: 100%;" role="main">
				<blockquote class="ui-elem-quote">商品-活动标签信息编辑</blockquote>
				<div class="row">
					<div class="col-md-12 col-sm-12 col-xs-12">
						<div class="x_panel">
							<div class="x_content">
								<form class="form-horizontal form-label-left" novalidate id="promotionTagForm" name="promotionTagForm" method="post"
									action="${pageContext.request.contextPath}/promotionTag/saveOrUpdatePromotionTag">
									<input type="hidden" id="id" name="id" value="${promotionTag.id }">
									<div class="item form-group">
										<label class="control-label col-md-1 col-sm-1 col-xs-12" for="roleName">标签名称: <span class="required"><font color="red">*</font></span>
										</label>
										<div class="col-md-3 col-sm-3 col-xs-12">
											<input id="tagName" name="tagName" value="${promotionTag.tagName }" class="form-control col-md-3 col-xs-12" type="text"> <input
												id="tagIcon" name="tagIcon" value="${promotionTag.tagIcon }" type="hidden">
										</div>
									</div>
									<div class="item form-group">
										<label class="control-label col-md-1 col-sm-1 col-xs-12" for="roleName">图标: <span class="required"><font color="red">*</font></span>
										</label>
										<div class="col-md-3 col-sm-3 col-xs-12">
											<div class="uploadpic_part">
												<ul class="image_container">
													<c:choose>
														<c:when test="${not empty promotionTag.tagIcon }">
															<li>
																<div class="pic1">
																	<a rel="image" href="<%=PublicConfig.IMG_ROOT_URL%>${promotionTag.tagIcon }"> <img
																		src="<%=PublicConfig.IMG_ROOT_URL%>${promotionTag.tagIcon }?x-oss-process=image/resize,h_60/format,png" />
																	</a> <a href="javascript:void(0)" onclick="clearImage(this,'image')" class="icon_close"></a>
																</div>
															</li>
														</c:when>
														<c:otherwise>
															<li>
																<div class="pic1">
																	<img src="${rootPath }/statics/images/upload_pic1.png" /> <input id="upload_image" name="imagePath" type="file"
																		onchange="ajaxFileUpload(this,'image')" />
																</div>
															</li>
														</c:otherwise>
													</c:choose>
												</ul>
											</div>
											<span class="pictips">尺寸:800*800,大小不超过1M</span>
										</div>
									</div>
								</form>
								<div class="ln_solid"></div>
								<div class="form-btn-content">
									<a id="btnPromotionSave" class="btn btn-primary">确定</a> <a id="btnPromotionBack" class="btn btn-default">返回</a>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript" src="<%=basePath%>/statics/js/jquery.form.js"></script>
<script type="text/javascript" src="<%=basePath%>/statics/js/jquery.validate.js"></script>
<script type="text/javascript" src="<%=basePath%>/statics/js/jquery.metadata.js"></script>
<script type="text/javascript" src="${rootPath}/statics/plugins/upload/ajaxfileupload.js"></script>
<script type="text/javascript" src="${rootPath}/js/product/promotionTag_form.js"></script>
</html>